<?php
/**
 * @author		João Batista Neto
 * @package		rpo
 * @subpackage	http\interfaces
 * @category	Http, Client
 * @license		http://opensource.org/licenses/gpl-license.php GNU Public License
 */
namespace rpo\http\interfaces;

use rpo\base\Object;
use rpo\http\interfaces\IHttpConnection;
use rpo\http\interfaces\IHttpState;

/**
 * Define a interface de uma conexão HTTP
 * @author		João Batista Neto
 * @abstract
 * @package		rpo
 * @subpackage	http\interfaces
 * @category	Http, Client
 * @license		http://opensource.org/licenses/gpl-license.php GNU Public License
 */
abstract class AbstractHttpConnection extends Object implements IHttpConnection {
	/**
	 * @var IHttpState
	 */
	private $state;

	/**
	 * Muda o estado da conexão
	 * @final
	 * @param IHttpState $state
	 */
	final public function changeState( IHttpState $state ){
		$this->state = $state;
	}
}